﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Identity;

namespace YaAppoint
{
    /// <summary>
    /// 医技科室
    /// </summary>
    public class Department : CommonEntity
    {
        /// <summary>
        /// 国标码
        /// </summary>
        [MaxLength(200)]
        public virtual string? GBCode
        {
            get; set;
        }

        /// <summary>
        /// 联系人
        /// </summary>
        [MaxLength(50)]
        public virtual string? ContactPerson
        {
            get; set;
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        [MaxLength(50)]
        public virtual string? PhoneNumber
        {
            get; set;
        }

        /// <summary>
        /// 邮箱地址
        /// </summary>
        [MaxLength(200)]
        public virtual string? EmaiAddress
        {
            get; set;
        }

        /// <summary>
        /// 科室用户
        /// </summary>
        public virtual List<IdentityUser>? Users
        {
            get; set;
        }

        /// <summary>
        /// 科室设备类型
        /// </summary>
        public virtual List<DeviceType>? DeviceTypes
        {
            get; set;
        }

        /// <summary>
        /// 科室诊室
        /// </summary>
        public virtual List<Room>? Rooms
        {
            get; set;
        }

        /// <summary>
        /// 科室设备
        /// </summary>
        public virtual List<Device> Devices { get; set; }
    }
}
